﻿//-----------------------------------------------------------------------
// <copyright file="ServiceCollectionExtensions.cs" company="SLWY Enterprises">
// * Copyright (C) 2017 四川商旅无忧科技有限公司 版权所有。
// * version : 1.0
// * author  : qinchaoyue
// * FileName: ServiceCollectionExtensions.cs
// * history : created by qinchaoyue 2017-10-22 09:39:01
// </copyright>
//-----------------------------------------------------------------------

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Slwy.MySql.Contracts;
using Slwy.MySql.Implements;
using Slwy.MySql.Models;

namespace Slwy.Data.Entity
{
    public static class ServiceCollectionExtensions
    {
        public static void AddDataEntityService(this IServiceCollection services, IConfiguration configuration)
        {
            var myConnections = configuration.GetSection("ConnectionStrings");
            services.Configure<MConnectionStrings>(myConnections);
        }
    }
}
